package com.wzy.level.detail.detailDao;

import com.wzy.Jdbc封装.pojo.News_detail;
import com.wzy.level.byPage.byPageDto.ByPage;

import java.util.List;

public interface detailDao {
    //查询所有
    public List<News_detail> selectAll();

    public News_detail selectById(int id);

    //根据用户名进行查询

    //分页查询
    public List<News_detail> selectByPage(ByPage byPage);

    //增
    public int insert(News_detail detail );

    //改
    public int update(News_detail detail);

    //删
    public int deleteById(News_detail detail);

    public int deleteByName(News_detail detail);
}
